import request from 'umi-request';
import { message } from 'antd';

export const SearchHome= (data)=> {
    return request('/api/home', {
      method: 'get',
      data
    })
      .then(function(response) {
        return response.data
      })
      .catch(function(error) {
        console.log(error);
        
      });
    
  }